package Thread;

public class Demo25 {
    private static int count=0;
    public static void main(String[] args)throws InterruptedException {
        Object obj = new Object();
        Thread t1 = new Thread(() -> {
            for (int i = 0; i < 5000; i++) {
                count++;
            }
        });
        Thread t2 = new Thread(() -> {
            for (int i = 0; i < 50000; i++) {
                count++;
            }
        });
    }
}
